package bb.lanxing.lib.devices.ble.ble.characteristic.light;

import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;

public enum LightMode {
    Off(0),
    Intensity81_100(1),
    Intensity61_80(2),
    Intensity41_60(3),
    Intensity21_40(4),
    Intensity20(5),
    SlowFlash(6),
    FastFlash(7),
    RandomFlash(8),
    Auto(9),
    LeftSignalOnTemp(10),
    LeftSignalOn(11),
    RightSignalOnTemp(12),
    RightSignalOn(13),
    DoubleFlash(14),
    LightOn(15),
    FallDetection(16),
    SOSFlash(17),
    Flash3Hz(18),
    WarningFlash(19),
    FallWarningFlash(20),
    DynamicFlash(21),
    DynamicColor(22);
    
    public static final Companion Companion = new Companion(null);
    private final int raw;

    LightMode(int i) {
        this.raw = i;
    }

    public final int getRaw() {
        return this.raw;
    }


    public static final class Companion {
        public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private Companion() {
        }

        public LightMode from(int i) {
            LightMode[] values;
            for (LightMode lightMode : LightMode.values()) {
                if (lightMode.getRaw() == i) {
                    return lightMode;
                }
            }
            return null;
        }
    }
}
